package edu.njfu.activitybootmode

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button

class SingleTopActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_single_top)
        Log.d("SingleTopActivity",this.toString())
        Log.d("SingleTopActivity","taskId is $taskId")
        val button3=findViewById<Button>(R.id.button3)
        button3.setOnClickListener {
            val intent = Intent(this,SingleTopActivity::class.java)
            startActivity(intent)
        }
        val button2=findViewById<Button>(R.id.button2)
        button2.setOnClickListener {
            val intent = Intent(this,StandardActivity::class.java)
            startActivity(intent)
        }
    }
}